// A simple program that computes the square root of a number
#include "TutorialConfig.h"

#include <cmath>
#include <iostream>
#include <string>


int main(int argc, char* argv[])
{
  // convert input to double
  const double inputValue = std::stod(argv[1]);
  std::cout << "version: " << Tutorial_VERSION_MAJOR << "." << Tutorial_VERSION_MINOR << "\n";

  // calculate square root
  const double outputValue = sqrt(inputValue);
  std::cout << "The square root of " << inputValue << " is " << outputValue
            << std::endl;
  return 0;
}
